package com.cn.goodsadmin.dao;


import com.cn.goodsadmin.common.PageQueryResult;
import com.cn.goodsadmin.po.UserRealDestDTO;
import com.cn.goodsadmin.po.Userreal;

import java.util.List;

public interface IUserRealDao {

    /**
     * 更新操作
     *
     * @param t
     */
    void update(Userreal t) throws Exception;

    /**
     * 删除操作
     *
     * @param t
     */
    void delete(Userreal t) throws Exception;

    /**
     * 增加操作
     *
     * @param t
     */
    void save(Userreal t) throws Exception;

    /**
     *
     * @param openid
     * @param isuse
     * @return
     * @throws Exception
     */
    List<Userreal> findAllUserRealByOpenid(String openid, boolean isuse, int appid)throws Exception;


    PageQueryResult<UserRealDestDTO> findAllUserReal(int status, int pageIndex, int pageSize, int appid) throws Exception;

    Userreal  findUserrealById(int urealid)throws Exception;
}
